#ifndef CHARGECONTROL_H
#define	CHARGECONTROL_H



void CC_InitVariables();
void CC_ReloadVoltageParameter();
void CC_ReloadCurrentParameter();
void CC_HandleChargerStatusMessage();
void CC_HandleTimerExpiration();
void CC_PrintChargerStatus();
void CC_HandleOtherChargeCommandMessage();
void CC_EnableMasterMode();


typedef enum
{
    NOT_CONNECTED,
    CHARGING_NORMAL,
    CHARGE_COMPLETE,
    INTERNAL_TOO_COLD,
    INTERNAL_MISSING_SENSOR,
    OTHER_TOO_COLD,
    OTHER_MISSING_SENSOR,
    NOT_CONFIGURED_AS_MASTER = 0xff
} ChargeStates;

extern ChargeStates ChargeState;

#endif	/* CHARGECONTROL_H */

